POV-Ray : Newsgroups : povray.beta-test : vnormalize : Re: vnormalize Server Time
29 Jul 2024 14:15:01 EDT (-0400)
  Re: vnormalize  
From: Warp
Date: 22 Apr 2002 03:48:13
Message: <3cc3c03d@news.povray.org>
Mike Williams <mik### [at] nospamplease> wrote:

> Can anyone remind me what vnormalize(<0,0,0>) used to return under
> previous betas?

  AFAIK, it returned <NaN, NaN, NaN>, which is obviously not usable.

  (NaN, that is, "Not a Number" is a special floating point value returned
by the math co-processor which means that it's the result of an illegal
operation, which can't have a result.)

  vnormalize(<0,0,0>) can't have a legal return value and thus issuing an
error is the correct behaviour.
  The reason is exactly the same as why 1/0 can't have a legal value.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.